package com.diandiji.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

public class Area implements Serializable {
    //通过继承Serializable把对象的状态信息通过网络进行传输，或者需要将对象的状态信息持久化，以便将来使用时都需要把对象进行序列化。
    private int areaID;
    @TableField(exist = false)  //表示不是该数据库表字段
    private int userID;
    private String areaName;

    public int getAreaID(){return areaID;}
    public void setAreaID(){this.areaID=areaID;}

    public int getUserID() { return userID; }
    public void setUserID(int userID) { this.userID = userID; }

    public String getAreaName() { return areaName; }
    public void setAreaName(String areaName) { this.areaName = areaName; }
}
